package com.hs.srm.admin.modules.requisition.dao;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.hs.srm.admin.modules.requisition.entity.NproPurchRequestItemEntity;
import com.hs.srm.admin.modules.requisition.vo.SupplyGoodsEntityVO;

public interface NproPurchRequestItemDao extends BaseMapper<NproPurchRequestItemEntity> {
	
	List<NproPurchRequestItemEntity> findByNo(@Param("purchRequestCode") String purchRequestCode,@Param("ids") List<String> ids);
	NproPurchRequestItemEntity selectById(@Param("pkId") String pkId);
	List<NproPurchRequestItemEntity> selectBatchIds(@Param("ids")List<String> ids);
	@MapKey("factory")
	List<Map<String,String>> selectUserMapList(@Param("ids") List<String> ids);
	
	List<NproPurchRequestItemEntity> selectRequestItem();
	
	List<SupplyGoodsEntityVO> findById(@Param("idsarrayList")  ArrayList<String> idsarrayList);
	
	//分页查询数据
	public List<NproPurchRequestItemEntity> selectDetailPage(RowBounds rowBounds,
	        @Param("ew") Wrapper<NproPurchRequestItemEntity> wrapper, @Param("params") Map<String, Object> params);
	//修改
	NproPurchRequestItemEntity findbypkId(String pkid);

    void updateStatus(@Param("requestCode")  String requestCode,@Param("purchRequestItemCode")   String purchRequestItemCode);
}
